# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file '/home/lwt/Desktop/python-poker/ui/MainWin.ui'
#
# Created: Mon Aug 23 22:03:33 2010
#      by: PyQt4 UI code generator 4.7.4
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(800, 600)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
        MainWindow.setSizePolicy(sizePolicy)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/rc/logo.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        MainWindow.setWindowIcon(icon)
        self.centralWidget = QtGui.QWidget(MainWindow)
        self.centralWidget.setObjectName("centralWidget")
        self.wAction = QtGui.QWidget(self.centralWidget)
        self.wAction.setGeometry(QtCore.QRect(210, 350, 195, 46))
        self.wAction.setObjectName("wAction")
        self.horizontalLayout = QtGui.QHBoxLayout(self.wAction)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.lbMsg = QtGui.QLabel(self.wAction)
        self.lbMsg.setObjectName("lbMsg")
        self.horizontalLayout.addWidget(self.lbMsg)
        self.btnAccept = QtGui.QPushButton(self.wAction)
        self.btnAccept.setObjectName("btnAccept")
        self.horizontalLayout.addWidget(self.btnAccept)
        self.wToken = QtGui.QLabel(self.centralWidget)
        self.wToken.setGeometry(QtCore.QRect(120, 220, 31, 31))
        self.wToken.setText("")
        self.wToken.setPixmap(QtGui.QPixmap(":/rc/token.png"))
        self.wToken.setScaledContents(False)
        self.wToken.setAlignment(QtCore.Qt.AlignCenter)
        self.wToken.setObjectName("wToken")
        MainWindow.setCentralWidget(self.centralWidget)
        self.menuBar = QtGui.QMenuBar(MainWindow)
        self.menuBar.setGeometry(QtCore.QRect(0, 0, 800, 22))
        self.menuBar.setObjectName("menuBar")
        self.aGame = QtGui.QMenu(self.menuBar)
        self.aGame.setObjectName("aGame")
        self.aHelp = QtGui.QMenu(self.menuBar)
        self.aHelp.setObjectName("aHelp")
        self.aPlayer = QtGui.QMenu(self.menuBar)
        self.aPlayer.setObjectName("aPlayer")
        self.aProp = QtGui.QMenu(self.menuBar)
        self.aProp.setObjectName("aProp")
        self.aView = QtGui.QMenu(self.menuBar)
        self.aView.setObjectName("aView")
        MainWindow.setMenuBar(self.menuBar)
        self.statusBar = QtGui.QStatusBar(MainWindow)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.statusBar.sizePolicy().hasHeightForWidth())
        self.statusBar.setSizePolicy(sizePolicy)
        self.statusBar.setObjectName("statusBar")
        MainWindow.setStatusBar(self.statusBar)
        self.dockBoard = QtGui.QDockWidget(MainWindow)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.dockBoard.sizePolicy().hasHeightForWidth())
        self.dockBoard.setSizePolicy(sizePolicy)
        self.dockBoard.setMaximumSize(QtCore.QSize(182, 149))
        self.dockBoard.setObjectName("dockBoard")
        self.dockWidgetContents = QtGui.QWidget()
        self.dockWidgetContents.setObjectName("dockWidgetContents")
        self.gridLayout = QtGui.QGridLayout(self.dockWidgetContents)
        self.gridLayout.setObjectName("gridLayout")
        self.scoreNW = QtGui.QLabel(self.dockWidgetContents)
        self.scoreNW.setAlignment(QtCore.Qt.AlignCenter)
        self.scoreNW.setObjectName("scoreNW")
        self.gridLayout.addWidget(self.scoreNW, 0, 0, 1, 1)
        self.scoreN = QtGui.QLabel(self.dockWidgetContents)
        self.scoreN.setAlignment(QtCore.Qt.AlignCenter)
        self.scoreN.setObjectName("scoreN")
        self.gridLayout.addWidget(self.scoreN, 0, 1, 1, 1)
        self.scoreNE = QtGui.QLabel(self.dockWidgetContents)
        self.scoreNE.setAlignment(QtCore.Qt.AlignCenter)
        self.scoreNE.setObjectName("scoreNE")
        self.gridLayout.addWidget(self.scoreNE, 0, 2, 1, 1)
        self.scoreW = QtGui.QLabel(self.dockWidgetContents)
        self.scoreW.setAlignment(QtCore.Qt.AlignCenter)
        self.scoreW.setObjectName("scoreW")
        self.gridLayout.addWidget(self.scoreW, 1, 0, 1, 1)
        self.scoreC = QtGui.QLabel(self.dockWidgetContents)
        self.scoreC.setAlignment(QtCore.Qt.AlignCenter)
        self.scoreC.setObjectName("scoreC")
        self.gridLayout.addWidget(self.scoreC, 1, 1, 1, 1)
        self.scoreE = QtGui.QLabel(self.dockWidgetContents)
        self.scoreE.setAlignment(QtCore.Qt.AlignCenter)
        self.scoreE.setObjectName("scoreE")
        self.gridLayout.addWidget(self.scoreE, 1, 2, 1, 1)
        self.scoreSW = QtGui.QLabel(self.dockWidgetContents)
        self.scoreSW.setAlignment(QtCore.Qt.AlignCenter)
        self.scoreSW.setObjectName("scoreSW")
        self.gridLayout.addWidget(self.scoreSW, 2, 0, 1, 1)
        self.scoreS = QtGui.QLabel(self.dockWidgetContents)
        self.scoreS.setAlignment(QtCore.Qt.AlignCenter)
        self.scoreS.setObjectName("scoreS")
        self.gridLayout.addWidget(self.scoreS, 2, 1, 1, 1)
        self.scoreSE = QtGui.QLabel(self.dockWidgetContents)
        self.scoreSE.setAlignment(QtCore.Qt.AlignCenter)
        self.scoreSE.setObjectName("scoreSE")
        self.gridLayout.addWidget(self.scoreSE, 2, 2, 1, 1)
        self.dockBoard.setWidget(self.dockWidgetContents)
        MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(1), self.dockBoard)
        self.dockConsole = QtGui.QDockWidget(MainWindow)
        self.dockConsole.setObjectName("dockConsole")
        self.dockWidgetContents_2 = QtGui.QWidget()
        self.dockWidgetContents_2.setObjectName("dockWidgetContents_2")
        self.verticalLayout = QtGui.QVBoxLayout(self.dockWidgetContents_2)
        self.verticalLayout.setObjectName("verticalLayout")
        self.console = QtGui.QTextBrowser(self.dockWidgetContents_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.console.sizePolicy().hasHeightForWidth())
        self.console.setSizePolicy(sizePolicy)
        self.console.setLineWrapMode(QtGui.QTextEdit.NoWrap)
        self.console.setObjectName("console")
        self.verticalLayout.addWidget(self.console)
        self.dockConsole.setWidget(self.dockWidgetContents_2)
        MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(1), self.dockConsole)
        self.toolBar = QtGui.QToolBar(MainWindow)
        self.toolBar.setObjectName("toolBar")
        MainWindow.addToolBar(QtCore.Qt.ToolBarArea(QtCore.Qt.TopToolBarArea), self.toolBar)
        self.aCreate = QtGui.QAction(MainWindow)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/rc/aCreate.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.aCreate.setIcon(icon1)
        self.aCreate.setObjectName("aCreate")
        self.aJoin = QtGui.QAction(MainWindow)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/rc/aJoin.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.aJoin.setIcon(icon2)
        self.aJoin.setObjectName("aJoin")
        self.aRule = QtGui.QAction(MainWindow)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/rc/aRule.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.aRule.setIcon(icon3)
        self.aRule.setObjectName("aRule")
        self.aAbout = QtGui.QAction(MainWindow)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(":/rc/aAbout.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.aAbout.setIcon(icon4)
        self.aAbout.setObjectName("aAbout")
        self.aStop = QtGui.QAction(MainWindow)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(":/rc/aStop.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.aStop.setIcon(icon5)
        self.aStop.setObjectName("aStop")
        self.aConfig = QtGui.QAction(MainWindow)
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap(":/rc/aConfig.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.aConfig.setIcon(icon6)
        self.aConfig.setObjectName("aConfig")
        self.aReady = QtGui.QAction(MainWindow)
        self.aReady.setCheckable(True)
        self.aReady.setChecked(False)
        icon7 = QtGui.QIcon()
        icon7.addPixmap(QtGui.QPixmap(":/rc/aReadyOff.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        icon7.addPixmap(QtGui.QPixmap(":/rc/aReady_on.png"), QtGui.QIcon.Normal, QtGui.QIcon.On)
        self.aReady.setIcon(icon7)
        self.aReady.setObjectName("aReady")
        self.aUseAI = QtGui.QAction(MainWindow)
        self.aUseAI.setCheckable(True)
        icon8 = QtGui.QIcon()
        icon8.addPixmap(QtGui.QPixmap(":/rc/aUseAI_off.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        icon8.addPixmap(QtGui.QPixmap(":/rc/aUseAI_on.png"), QtGui.QIcon.Normal, QtGui.QIcon.On)
        self.aUseAI.setIcon(icon8)
        self.aUseAI.setObjectName("aUseAI")
        self.aGame.addAction(self.aCreate)
        self.aGame.addAction(self.aJoin)
        self.aGame.addAction(self.aStop)
        self.aHelp.addAction(self.aRule)
        self.aHelp.addAction(self.aAbout)
        self.aPlayer.addAction(self.aReady)
        self.aPlayer.addAction(self.aUseAI)
        self.aProp.addAction(self.aConfig)
        self.menuBar.addAction(self.aGame.menuAction())
        self.menuBar.addAction(self.aPlayer.menuAction())
        self.menuBar.addAction(self.aProp.menuAction())
        self.menuBar.addAction(self.aView.menuAction())
        self.menuBar.addAction(self.aHelp.menuAction())
        self.toolBar.addAction(self.aCreate)
        self.toolBar.addAction(self.aJoin)
        self.toolBar.addAction(self.aStop)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.aReady)
        self.toolBar.addAction(self.aUseAI)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.aConfig)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.aRule)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8))
        self.wAction.setToolTip(QtGui.QApplication.translate("MainWindow", "操作面板", None, QtGui.QApplication.UnicodeUTF8))
        self.lbMsg.setText(QtGui.QApplication.translate("MainWindow", "请选择要出的牌:", None, QtGui.QApplication.UnicodeUTF8))
        self.btnAccept.setText(QtGui.QApplication.translate("MainWindow", "确定", None, QtGui.QApplication.UnicodeUTF8))
        self.wToken.setToolTip(QtGui.QApplication.translate("MainWindow", "令牌", None, QtGui.QApplication.UnicodeUTF8))
        self.aGame.setTitle(QtGui.QApplication.translate("MainWindow", "游戏", None, QtGui.QApplication.UnicodeUTF8))
        self.aHelp.setTitle(QtGui.QApplication.translate("MainWindow", "帮助", None, QtGui.QApplication.UnicodeUTF8))
        self.aPlayer.setTitle(QtGui.QApplication.translate("MainWindow", "玩家", None, QtGui.QApplication.UnicodeUTF8))
        self.aProp.setTitle(QtGui.QApplication.translate("MainWindow", "选项", None, QtGui.QApplication.UnicodeUTF8))
        self.aView.setTitle(QtGui.QApplication.translate("MainWindow", "显示", None, QtGui.QApplication.UnicodeUTF8))
        self.dockBoard.setToolTip(QtGui.QApplication.translate("MainWindow", "积分盒", None, QtGui.QApplication.UnicodeUTF8))
        self.dockBoard.setStatusTip(QtGui.QApplication.translate("MainWindow", "显示各游戏玩家的积分", None, QtGui.QApplication.UnicodeUTF8))
        self.dockBoard.setWindowTitle(QtGui.QApplication.translate("MainWindow", "积分盒", None, QtGui.QApplication.UnicodeUTF8))
        self.scoreNW.setText(QtGui.QApplication.translate("MainWindow", "0", None, QtGui.QApplication.UnicodeUTF8))
        self.scoreN.setText(QtGui.QApplication.translate("MainWindow", "0", None, QtGui.QApplication.UnicodeUTF8))
        self.scoreNE.setText(QtGui.QApplication.translate("MainWindow", "0", None, QtGui.QApplication.UnicodeUTF8))
        self.scoreW.setText(QtGui.QApplication.translate("MainWindow", "0", None, QtGui.QApplication.UnicodeUTF8))
        self.scoreC.setText(QtGui.QApplication.translate("MainWindow", "0", None, QtGui.QApplication.UnicodeUTF8))
        self.scoreE.setText(QtGui.QApplication.translate("MainWindow", "0", None, QtGui.QApplication.UnicodeUTF8))
        self.scoreSW.setText(QtGui.QApplication.translate("MainWindow", "0", None, QtGui.QApplication.UnicodeUTF8))
        self.scoreS.setText(QtGui.QApplication.translate("MainWindow", "0", None, QtGui.QApplication.UnicodeUTF8))
        self.scoreSE.setText(QtGui.QApplication.translate("MainWindow", "0", None, QtGui.QApplication.UnicodeUTF8))
        self.dockConsole.setToolTip(QtGui.QApplication.translate("MainWindow", "控制台", None, QtGui.QApplication.UnicodeUTF8))
        self.dockConsole.setStatusTip(QtGui.QApplication.translate("MainWindow", "显示游戏相关信息", None, QtGui.QApplication.UnicodeUTF8))
        self.dockConsole.setWindowTitle(QtGui.QApplication.translate("MainWindow", "控制台", None, QtGui.QApplication.UnicodeUTF8))
        self.toolBar.setWindowTitle(QtGui.QApplication.translate("MainWindow", "工具栏", None, QtGui.QApplication.UnicodeUTF8))
        self.aCreate.setText(QtGui.QApplication.translate("MainWindow", "创建游戏", None, QtGui.QApplication.UnicodeUTF8))
        self.aCreate.setStatusTip(QtGui.QApplication.translate("MainWindow", "以服务端方式创建游戏", None, QtGui.QApplication.UnicodeUTF8))
        self.aJoin.setText(QtGui.QApplication.translate("MainWindow", "加入游戏", None, QtGui.QApplication.UnicodeUTF8))
        self.aJoin.setStatusTip(QtGui.QApplication.translate("MainWindow", "以客户端方式加入游戏", None, QtGui.QApplication.UnicodeUTF8))
        self.aRule.setText(QtGui.QApplication.translate("MainWindow", "游戏规则", None, QtGui.QApplication.UnicodeUTF8))
        self.aRule.setStatusTip(QtGui.QApplication.translate("MainWindow", "各扑克游戏的规则说明", None, QtGui.QApplication.UnicodeUTF8))
        self.aAbout.setText(QtGui.QApplication.translate("MainWindow", "关于", None, QtGui.QApplication.UnicodeUTF8))
        self.aAbout.setStatusTip(QtGui.QApplication.translate("MainWindow", "关于本程序", None, QtGui.QApplication.UnicodeUTF8))
        self.aStop.setText(QtGui.QApplication.translate("MainWindow", "结束游戏", None, QtGui.QApplication.UnicodeUTF8))
        self.aStop.setStatusTip(QtGui.QApplication.translate("MainWindow", "结束服务端或客户端的游戏", None, QtGui.QApplication.UnicodeUTF8))
        self.aConfig.setText(QtGui.QApplication.translate("MainWindow", "设置", None, QtGui.QApplication.UnicodeUTF8))
        self.aConfig.setStatusTip(QtGui.QApplication.translate("MainWindow", "玩家/后台/界面等设置", None, QtGui.QApplication.UnicodeUTF8))
        self.aReady.setText(QtGui.QApplication.translate("MainWindow", "准备状态", None, QtGui.QApplication.UnicodeUTF8))
        self.aReady.setStatusTip(QtGui.QApplication.translate("MainWindow", "开启/关闭玩家准备状态", None, QtGui.QApplication.UnicodeUTF8))
        self.aUseAI.setText(QtGui.QApplication.translate("MainWindow", "自动出牌", None, QtGui.QApplication.UnicodeUTF8))
        self.aUseAI.setStatusTip(QtGui.QApplication.translate("MainWindow", "开启/关闭游戏自动出牌", None, QtGui.QApplication.UnicodeUTF8))

import cardface_rc

if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    MainWindow = QtGui.QMainWindow()
    ui = Ui_MainWindow()
    ui.setupUi(MainWindow)
    MainWindow.show()
    sys.exit(app.exec_())

